package org.code.mallspringboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.code.mallspringboot.dto.Oms;
import org.code.mallspringboot.pojo.OmsOrder;
import org.code.mallspringboot.service.OmsOrderService;
import org.code.mallspringboot.mapper.OmsOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class OmsOrderServiceImpl implements OmsOrderService{
    @Autowired
    private OmsOrderMapper omsOrderMapper;

    @Override
    public List<OmsOrder> selectAll(int pageNum, int pageSize, String orderSn, String receiverKeyword, String status, String orderType, String sourceType, String createTime) {
        return omsOrderMapper.selectAll(pageNum, pageSize, orderSn, receiverKeyword, status, orderType, sourceType, createTime);
    }

    @Override
    public int count(String orderSn, String receiverKeyword, String status, String orderType, String sourceType, String createTime) {
        return omsOrderMapper.count(orderSn, receiverKeyword, status, orderType, sourceType, createTime);
    }

    @Override
    public OmsOrder selectAllByIdInt(String id) {
        return omsOrderMapper.selectAllByIdInt(id);
    }

    @Override
    public int updateDeliverySnInt(String deliverySn, String deliveryCompany, String id) {
        return omsOrderMapper.updateDeliverySnInt(deliverySn, deliveryCompany, id);
    }

    @Override
    public int updateReceiverNameInt(Oms oms) {
        return omsOrderMapper.updateReceiverNameInt(oms);
    }

    @Override
    public int updateNoteInt(String note, String id) {
        return omsOrderMapper.updateNoteInt(note, id);
    }

    @Override
    public int updateDeleteStatusInt(String id) {
        return omsOrderMapper.updateDeleteStatusInt(id);
    }
}




